<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/base.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<link href="${ctsCss}/table.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%@ include file="/common/message-save-annualId.jsp" %>
<form id="template-form" class="form-horizontal" action="${ctx}/reportTemplateManageController/<c:choose><c:when test="${rptTemplate.templateId == null}">saveTemplate</c:when><c:otherwise>updateTemplate</c:otherwise></c:choose>" method="post">
	<input type="hidden" id="groupId" name="groupId" value="${rptTemplate.groupId}"/>
	<input type="hidden" id="annualId" name="annualId" value="${annualId}"/>
	<input type="hidden" id="templateId" name="templateId" value="${rptTemplate.templateId }"/>
<table>
	 <tr class="tab_grey">
      <td width="15%">子表名称：</td>
      <td width="85%" colspan="3"><input type="text" id="name" name="name" value="${rptTemplate.name }" required maxlength="150" style="width:150px" /></td>
     </tr>
     <tr class="tab_grey">
     	<td width="15%">所属套标：</td>
      	<td width="35%">
      		${rptTemplate.groupName}
      	</td>
      	<td width="15%">&nbsp;</td>
      	<td width="35%">
      		&nbsp;
      	</td>
     </tr>
     <%-- <tr class="tab_grey">
      <td width="15%">子表说明：</td>
      <td width="85%" colspan="3">
      	<textarea id="description" name="description" style="width:70%" cols="50" rows="3" maxlength="200" id="textfield4">${rptTemplate.description}</textarea>
      </td>
     </tr> --%>
         <tr class="tab_grey">
      <td width="15%">排序：</td>
      <td width="85%" colspan="3">
      	<input type="text" id="orderId" name="orderId" value="${rptTemplate.orderId }" class="number" maxlength="5" style="width:150px"/>
      	注：只能填数字，数字越小，排序越靠前
      </td>
     </tr>
</table>
<div  style="text-align: center;">
	<button type="button" class="btn btn-primary" id="saveBtn" onclick="rptGroupSaveInfo();">保存</button>
	<button type="reset" class="btn" id="resetBtn">重置</button>
</div>
</form>
</body>
<script type="text/javascript">
$('#template-form').validate();
function rptGroupSaveInfo(){
	$("#template-form").submit();
}
</script>
</html>